const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;

if (process.env.NODE_EVN === "production") {
    module.exports = {
        plugins: [new BundleAnalyzerPlugin()],
    };
} else {
    module.exports = {};
}